www.gusucode.com > VC免费界面库 AppFace应用实例-源码程序 > VC免费界面库 AppFace应用实例-源码程序/code/Samples/VC6/DemoSdi/DemoSdiDoc.cpp

    // DemoSdiDoc.cpp : implementation of the CDemoSdiDoc class
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "DemoSdi.h"

#include "DemoSdiDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDemoSdiDoc

IMPLEMENT_DYNCREATE(CDemoSdiDoc, CDocument)

BEGIN_MESSAGE_MAP(CDemoSdiDoc, CDocument)
	//{{AFX_MSG_MAP(CDemoSdiDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDemoSdiDoc construction/destruction

CDemoSdiDoc::CDemoSdiDoc()
{
	// TODO: add one-time construction code here

}

CDemoSdiDoc::~CDemoSdiDoc()
{
}

BOOL CDemoSdiDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CDemoSdiDoc serialization

void CDemoSdiDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// CDemoSdiDoc diagnostics

#ifdef _DEBUG
void CDemoSdiDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CDemoSdiDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CDemoSdiDoc commands